package models

import (
	"time"
)

type Dispatch struct {
	Id              int       `xorm:"pk autoincr int(11)"`
	Orderid         int       `xorm:"int(11)"`
	Status          string    `xorm:"varchar(3)"`
	Vendorid        int       `xorm:"int(11)"`
	Truckid         int       `xorm:"int(11)"`
	Starttm         time.Time `xorm:"DATETIME"`
	Endtm           time.Time `xorm:"DATETIME"`
	Prepaytype      string    `xorm:"varchar(50)"`
	Prepayamount    string    `xorm:"DECIMAL(19,2)"`
	Settlename      string    `xorm:"varchar(50)"`
	Settlebank      string    `xorm:"varchar(50)"`
	Settlebankacct  string    `xorm:"varchar(50)"`
	Settleno        string    `xorm:"varchar(50)"`
	Paydt           time.Time `xorm:"DATE"`
	Payempid        int       `xorm:"int(11)"`
	Driver          string    `xorm:"varchar(50)"`
	Drivertel       string    `xorm:"varchar(50)"`
	Empid           int       `xorm:"int(11)"`
	Settletype      string    `xorm:"varchar(50)"`
	Settledt        time.Time `xorm:"DATE"`
	Price           string    `xorm:"DECIMAL(19,2)"`
	Amount          string    `xorm:"DECIMAL(19,2)"`
	Driverpayflag   int       `xorm:"TINYINT(3) not null default(0)"`
	Driverpayamount string    `xorm:"DECIMAL(19,2)"`
	Attid           int       `xorm:"int(11)"`
	Attid1          int       `xorm:"int(11)"`
	Settlename2     string    `xorm:"varchar(50)"`
	Settlebank2     string    `xorm:"varchar(50)"`
	Settlebankacct2 string    `xorm:"varchar(50)"`
	Amount3         string    `xorm:"DECIMAL(19,2)"`
	Payattid        int       `xorm:"int(11)"`
	Amount2         string    `xorm:"DECIMAL(19,2)"`
	Payatt          string    `xorm:"varchar(255)"`
}
